 /*
 * @(#)ListWorkflowMonitoringForm.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.workflow.web;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import com.dcivision.framework.web.AbstractSearchForm;
/**
  ListWorkflowMonitoringForm.java

  The ActionForm for ListWorkflowRecord

    @author          Angus Shiu
    @company         DCIVision Limited
    @creation date   30/07/2003
    @version         $Revision: 1.18.4.1 $
*/
public class ListWorkflowMonitoringForm extends AbstractSearchForm {

  public static final String REVISION = "$Revision: 1.18.4.1 $";
  public static final String TASK_TYPE_DELAY = "D";
  public static final String TASK_TYPE_ALL = "";
  public static final String TASK_TYPE_ON_TIME = "O";
  public static final String CALENDAR_TIME_TYPE_MONTH="M";
  public static final String CALENDAR_TIME_TYPE_YEAR="Y";
  public static final String CALENDAR_TIME_TYPE_DAY="D";
  public static final String PERIOD_TIME_TYPE_TIME="T";
  public static final String PERIOD_TIME_TYPE_DAYS="A";
  private String status = "";
  private String workflowGroupID = null;
  private String workflowCategoryID = "";
  private String priority = "";
  private String taskType = ListWorkflowMonitoringForm.TASK_TYPE_ALL;
  private String workflowRecordID = null;
  private String submitter = null;
  private String actionTaker = null;
  private String datePeriodFrom = null;
  private String datePeriodTo = null;
  private String trackID = null;
  private String stepName = null;
  private String relatedObject = null;
  private String workflowDescription = null;
  private String queryName = null;
  private String queryDescription = null;
  private String queryType = "P";
  private String opType = "N";
  private String queryID = null;
  private String attachmentName = null;
  private String taskComment = null;
  private String periodType = PERIOD_TIME_TYPE_TIME;
  private String periodTimes = null;
  private String periodTimeType = null;
  private String stageName = null;
  
  /**
   * @return Returns the opType.
   */
  public String getOpType() {
	  return opType;
  }
  
  /**
   * @param opType The opType to set.
   */
  public void setOpType(String opType) {
	  this.opType = opType;
  }
  
  /**
   * @return Returns the iD.
   */
  public String getQueryID() {
	  return queryID;
  }
  
  /**
   * @param id The iD to set.
   */
  public void setQueryID(String id) {
	  queryID = id;
  }
  
  /**
   * @return Returns the queryDescription.
   */
  public String getQueryDescription() {
	  return queryDescription;
  }
  
  /**
   * @param queryDescription The queryDescription to set.
   */
  public void setQueryDescription(String queryDescription) {
	  this.queryDescription = queryDescription;
  }
  
  /**
   * @return Returns the queryName.
   */
  public String getQueryName() {
    return queryName;
  }
  
  /**
   * @param queryName The queryName to set.
   */
  public void setQueryName(String queryName) {
	  this.queryName = queryName;
  }
  
  /**
   * @return Returns the queryType.
   */
  public String getQueryType() {
	  return queryType;
  }
  
  /**
   * @param queryType The queryType to set.
   */
  public void setQueryType(String queryType) {
	  this.queryType = queryType;
  }
  
  public String getWorkflowDescription() {
  	return workflowDescription;
  }
  
  /**
   * @param description The wDescription to set.
   */
  public void setWorkflowDescription(String description) {
  	workflowDescription = description;
  } 
  
  /**
   * @return Returns the relatedObject.
  */
  public String getRelatedObject() {
	  return relatedObject;
  }
  
 /**
   * @param relatedObject The relatedObject to set.
   */
  public void setRelatedObject(String relatedObject) {
	  this.relatedObject = relatedObject;
  }
  
  /**
   * @return Returns the stepName.
   */
  public String getStepName() {
	  return stepName;
  }
  
  /**
   * @param stepName The stepName to set.
   */
  public void setStepName(String stepName) {
	  this.stepName = stepName;
  }
   
  /** Creates a new instance of ListWorkflowMonitoringForm */
  public ListWorkflowMonitoringForm() {
    super();
    this.setSortAttribute("A.TRACK_ID,A.CREATE_DATE");
    this.setSortOrder("DESC");
  }
  
  public void setStatus(String status) {
    this.status = status;
  }
  
  public String getStatus() {
    return(this.status);
  }
  
  public void setWorkflowGroupID(String workflowGroupID) {
    this.workflowGroupID = workflowGroupID;
  }
  
  public String getWorkflowGroupID() {
    return(this.workflowGroupID);
  }
  
  public void setWorkflowCategoryID(String workflowCategoryID) {
    this.workflowCategoryID = workflowCategoryID;
  }
  
  public String getWorkflowCategoryID() {
    return (this.workflowCategoryID);
  }
  
  public void setPriority(String priority) {
    this.priority = priority;
  }
  
  public String getPriority() {
    return this.priority;
  }
  
  public void setTaskType(String taskType) {
    this.taskType = taskType;
  }
  
  public String getTaskType() {
    return this.taskType;
  }
  
  public String getWorkflowRecordID(){
  	return this.workflowRecordID;
  }
  
  public void setWorkflowRecordID(String workflowRecordID){
    this.workflowRecordID = workflowRecordID; 
  }
  
  public String getSubmitter(){
    return this.submitter;
  }
  
  public void setSubmitter(String submitter){
    this.submitter = submitter; 
  }
  
  public String getActionTaker(){
    return this.actionTaker;
  }
  
  public void setActionTaker(String actionTaker){
    this.actionTaker = actionTaker; 
  }
  
  public String getDatePeriodFrom(){
    return this.datePeriodFrom;
  }
  
  public void setDatePeriodFrom(String datePeriodFrom){
    this.datePeriodFrom = datePeriodFrom; 
  }
  
  public String getDatePeriodTo(){
    return this.datePeriodTo;
  }
  
  public void setDatePeriodTo(String datePeriodTo){
    this.datePeriodTo = datePeriodTo; 
  }
  
  public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
    status = "";
    workflowGroupID = null;
    workflowCategoryID = "";
    priority = "";
    taskType = ListWorkflowMonitoringForm.TASK_TYPE_ALL;
    this.workflowRecordID = null;
    this.submitter = null;
    this.actionTaker = null;
    this.datePeriodFrom = null;
    this.datePeriodTo = null;
    this.stepName = null;
    this.workflowDescription = null;
    this.relatedObject = null;
    this.queryID = null;
    this.queryDescription = null;
    this.queryName = null;
    this.workflowGroupID = null;
    

    trackID = null;
    queryType = "P";
    opType = "N";
    attachmentName = null;
    taskComment = null;
    periodType = PERIOD_TIME_TYPE_TIME;
    periodTimes = null;
    periodTimeType = null;
    this.stageName = null;
  }
  
  public String getTrackID(){
    return this.trackID;  
  }
  
  public void setTrackID(String trackID){
    this.trackID = trackID;  
  }

  public String getAttachmentName() {
  	return attachmentName;
  }
  
  public void setAttachmentName(String attachmentName) {
  	this.attachmentName = attachmentName;
  }

  public String getTaskComment() {
  	return taskComment;
  }
 
  public void setTaskComment(String taskComment) {
  	this.taskComment = taskComment;
  }
   
  public String getPeriodTimes() {
    return periodTimes;
  }
  
  public void setPeriodTimes(String periodTimes) {
    this.periodTimes = periodTimes;
  }
  
  public String getPeriodTimeType() {
    return periodTimeType;
  }
  
  public void setPeriodTimeType(String periodTimeType) {
    this.periodTimeType = periodTimeType;
  }
  
  public String getPeriodType() {
    return periodType;
  }
  
  public void setPeriodType(String periodType) {
    this.periodType = periodType;
  }
  
	public String getStageName() {
		return stageName;
	}
	
	public void setStageName(String stageName) {
		this.stageName = stageName;
	}
}
